Function |service_container

work/resources::|service_container


Usage

|service_container(name, memory, cpu, storage, arch, mounts, image, pull_secret, env, command)

Parameters

↳ name: string
↳ memory: u32
↳ cpu: u32
↳ storage: u32
↳ arch: Arch (work/resources/arch::Arch)
↳ mounts: Vec<Mount> (work/resources::Mount)
↳ image: string
↳ pull_secret: Option<string>
↳ env: Option<StringMap> (std/data/string_map::StringMap)
↳ command: Option<Vec<string>>

Return

ServiceContainer


Build a ServiceContainer specification.

  • name: unique name for this service container.
  • memory, cpu, storage, arch, mounts, image, pull_secret: same as |container.
  • env: optional environment variables for the container.
  • command: optional entrypoint override.